import request from '@/utils/request';

/**
 * 门店数据统计
 * @param {number} sid
 * @return {Object}
 */
export function getStatistics(sid) {
  return request({
    url: '/txs/salon/statistic/' + sid,
    method: 'get',
  });
}

/**
 * 月流水图表数据
 * @param {number} sid
 * @param {Object} params
 * @return {Object}
 */
export function getBusinessChart(sid, params) {
  return request({
    url: 'txs/salon/statistic/month/business/' + sid,
    method: 'get',
    params: params,
  });
}
